/**
 * create by young (young2f@outlook.com) on 2020/8/12
 */
'use strict';
export default {
  'POST /api/user/login': (req, res) => {
    console.log('mock', req.route.path, req.body);
    res.send({
      'status': 'ok',
      'result': {
        'isDeleted': false,
        'createdTs': '2022-08-23T16:14:48.142Z',
        'updatedTs': '2022-08-23T16:14:48.142Z',
        '_id': '6304fdde99424c531045aa48',
        'userCode': 'HM2208240018388720',
        'tenantCode': 'TEN220824001758AB31',
        'tenantName': '南京国显电子公司',
        'createUser': 'super_admin',
        'createUsername': '平台系统',
        'username': 'smt001',
        'nickname': '陆伯言',
        'userType': 'su',
        'isAdmin': true,
        'roleCode': 'ROL220824001838D531',
        'roleName': '管理员',
        '__v': 0,
        'role': {
          'isDeleted': false,
          'createdTs': '2022-08-23T16:14:48.142Z',
          'updatedTs': '2022-09-01T06:10:04.844Z',
          'menus': [
            '/tenant',
            '/organization',
            '/organization/tree',
            '/organization/role',
            '/organization/employee',
            '/product',
            '/product/index',
            '/product/templates',
            '/product/routings',
            '/salesOrder',
            '/salesOrder/customer',
            '/salesOrder/index',
            '/salesOrder/deliveryPlan',
            '/salesOrder/statistics',
            '/purchaseOrder',
            '/purchaseOrder/supplier',
            '/purchaseOrder/index',
            '/purchaseOrder/statistics',
            '/store',
            '/store/materials',
            '/store/storage',
            '/store/applyIn',
            '/store/applyOut',
            '/store/lots',
            '/store/statistics',
            '/selfService',
            '/barcode',
            '/barcode/list',
            '/settings',
            '/settings/labelConfig',
            '/settings/sys',
            '/settings/help',
          ],
          'capability': [],
          '_id': '6304fdde99424c531045aa47',
          'tenantCode': 'TEN220824001758AB31',
          'tenantName': '南京国显电子公司',
          'createUser': 'smt001',
          'createUsername': '陆伯言',
          'roleCode': 'ROL220824001838D531',
          'roleName': '管理员',
          'isAdmin': true,
          '__v': 0
        },
        'tenant': {
          'isDeleted': false,
          'createdTs': '2022-08-23T16:14:48.142Z',
          'updatedTs': '2022-08-23T16:14:48.142Z',
          'tenantCity': [
            '江苏',
            '南京'
          ],
          'relating': [],
          '_id': '6304fdde99424c531045aa46',
          'tenantCode': 'TEN220824001758AB31',
          'tenantName': '南京国显电子公司',
          'tenantShortName': '南京国显',
          'tenantInvalidData': '2023-08-23T16:18:36.593Z',
          'tenantAdminUser': 'smt001',
          'tenantAdminUsername': '陆伯言',
          'tenantAdminPassword': '96cae35ce8a9b0244178bf28e4966c2ce1b8385723a96a6b838858cdd6ca0a1e',
          'maxUser': 20,
          'maxRelatingTenant': 20,
          'isChildren': false,
          'tenantType': 'Libra',
          'createUser': 'super_admin',
          '__v': 0
        },
        'renderUrl': '/desktop'
      }
    });
  }
};
